<?php

function printBooleanInputControl($booleanValue) {
    echo "<option value\"\">--SELECT--</option>";

    echo "<option value=\"1\"";
    if ($booleanValue == 1) {
        echo " selected ";
    }
    echo ">YES</option>";

    echo "<option value=\"0\"";
    if ($booleanValue == 0) {
        echo " selected ";
    }
    echo ">NO</option>";
}
?>